import requests

url = 'https://www.douban.com/'
headers1 = {
    #  'Cookie': 'll="108315"; bid=gU275WdTTds; __utma=30149280.2097162861.1686830809.1686830809.1686830809.1; __utmc=30149280; __utmz=30149280.1686830809.1.1.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utmt=1; __utmt_douban=1; __utma=81379588.46451840.1686830815.1686830815.1686830815.1; __utmc=81379588; __utmz=81379588.1686830815.1.1.utmcsr=douban.com|utmccn=(referral)|utmcmd=referral|utmcct=/; ap_v=0,6.0; _vwo_uuid_v2=D668150A1632513A4A800F16A94A94334|2560dbe17cd94447cbecd8f7cf046ed2; __yadk_uid=fdAUnmQLGssIPJIIpVPYK7ajkvPN9vv4; _pk_ref.100001.3ac3=%5B%22%22%2C%22%22%2C1686830817%2C%22https%3A%2F%2Fwww.douban.com%2F%22%5D; _pk_ses.100001.3ac3=*; __utmb=30149280.9.10.1686830809; __utmb=81379588.4.10.1686830815; _pk_id.100001.3ac3=0547d0758fa8c14e.1686830817.1.1686831157.1686830817.; __gads=ID=4e9b4d6d18af4399-229564cba7b4005b:T=1686831161:RT=1686831161:S=ALNI_MYASTKdGO-2uM20PGDRfq_o2YlnqA; __gpi=UID=00000c4f50191093:T=1686831161:RT=1686831161:S=ALNI_MbzWuAGOtrq8CVXGQxJQzl7Kmp0jQ',
    'Host': 'book.douban.com',
    'Referer': 'https://www.douban.com/',
    'Upgrade-Insecure-Requests': '1',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36',
}
cookies_str = 'll="108315"; bid=gU275WdTTds; __utma=30149280.2097162861.1686830809.1686830809.1686830809.1; __utmc=30149280; __utmz=30149280.1686830809.1.1.utmcsr=baidu|utmccn=(organic)|utmcmd=organic; __utma=81379588.46451840.1686830815.1686830815.1686830815.1; __utmc=81379588; __utmz=81379588.1686830815.1.1.utmcsr=douban.com|utmccn=(referral)|utmcmd=referral|utmcct=/; ap_v=0,6.0; _vwo_uuid_v2=D668150A1632513A4A800F16A94A94334|2560dbe17cd94447cbecd8f7cf046ed2; __yadk_uid=fdAUnmQLGssIPJIIpVPYK7ajkvPN9vv4; _pk_ref.100001.3ac3=%5B%22%22%2C%22%22%2C1686830817%2C%22https%3A%2F%2Fwww.douban.com%2F%22%5D; _pk_ses.100001.3ac3=*; __gads=ID=4e9b4d6d18af4399-229564cba7b4005b:T=1686831161:RT=1686831161:S=ALNI_MYASTKdGO-2uM20PGDRfq_o2YlnqA; __gpi=UID=00000c4f50191093:T=1686831161:RT=1686831161:S=ALNI_MbzWuAGOtrq8CVXGQxJQzl7Kmp0jQ; __utmb=30149280.10.10.1686830809; __utmb=81379588.5.10.1686830815; _pk_id.100001.3ac3=0547d0758fa8c14e.1686830817.1.1686831168.1686830817.; ct=y'
# cookies_list = cookies_str.split('; ')
# dict_data = {}
# for i in cookies_list:
#     key_value_list = i.split('=')
#     dict_data[key_value_list[0]] = key_value_list[1]
# print(dict_data)
cookies_dict = {cookies.split("=")[0]: cookies.split('=')[1] for cookies in cookies_str.split('; ')}
response = requests.get(url, headers=headers1, cookies=cookies_dict).content.decode()
print(response)